<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户列表页面</title>
</head>
<body>
用户列表页面

<div>
    <ul>
        <li th:each="user:${userList}">
            <span th:text="${user.id}"></span>
            <span th:text="${user.username}"></span>
            <button th:onclick="'getName(\'' + ${user.id} + '\');'">获取名字</button>
        </li>
    </ul>
</div>
</body>
</html>